/**   
 * @Title: PaymentPlanService.java 
 * @Package com.betterjr.modules.risk.loanmanage.job 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author licz
 * @date 2018年7月5日 上午11:25:09  
 */
package com.betterjr.modules.risk.loanmanage.job;

import javax.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.betterjr.modules.risk.loanmanage.service.PaymentPlanService;
import com.dangdang.ddframe.job.api.JobExecutionMultipleShardingContext;
import com.dangdang.ddframe.job.plugin.job.type.simple.AbstractSimpleElasticJob;

/** 
 * @ClassName: ScfPaymentPlanDataJob 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author licz
 * @date 2018年7月5日 上午11:25:09 
 *  
 */
@Service
public class ScfPaymentPlanDataJob extends AbstractSimpleElasticJob {
    private final static Logger logger = LoggerFactory.getLogger(ScfPaymentPlanDataJob.class);

    @Inject
    PaymentPlanService paymentPlanService;

    /** 
     * <p>Description: </p> 
     * @see com.dangdang.ddframe.job.plugin.job.type.simple.AbstractSimpleElasticJob#process(com.dangdang.ddframe.job.api.JobExecutionMultipleShardingContext) 
     * @author licz
     * @date 2018年7月5日 上午11:26:31 
     */
    @Override
    public void process(final JobExecutionMultipleShardingContext anShardingContext) {
        logger.info("定时扫描扣款数据开始！");
        paymentPlanService.writeBackRemotePlanData();
        logger.info("定时扫描扣款数据结束！");
    }

}
